import json


def read_json(data):
    l = []
    f = open(data)
    data = json.load(f)
    f.close()
    for info in data:
        print(info)
        data = info["data"]
        success = info["success"]
        code = info["code"]
        message = info["message"]
        l.append((data,success,code,message))
    # print(data)
    print(l)
    return l

if __name__ == '__main__':
    data = "./data/login.json"
    read_json(data)